package org.dromara.system.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.dromara.common.mybatis.annotation.DataColumn;
import org.dromara.common.mybatis.annotation.DataPermission;
import org.dromara.system.domain.YzlSafetyCamera;
import org.dromara.system.domain.vo.YzlSafetyCameraVo;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;

import java.util.List;

/**
 * 摄像头视频Mapper接口
 *
 * @author fxnn
 * @date 2025-09-08
 */
public interface YzlSafetyCameraMapper extends BaseMapperPlus<YzlSafetyCamera, YzlSafetyCameraVo> {


    @DataPermission({
        @DataColumn(key = "deptName", value = "dept_id"),
        @DataColumn(key = "userName", value = "user_id")
    })
    default Page<YzlSafetyCameraVo> selectVoPageDept(Page<YzlSafetyCamera> page, Wrapper<YzlSafetyCamera> queryWrapper) {
        return this.selectVoPage(page, queryWrapper);
    }

    @DataPermission({
        @DataColumn(key = "deptName", value = "dept_id"),
        @DataColumn(key = "userName", value = "user_id")
    })
    Page<YzlSafetyCameraVo> customPageList(@Param("page") Page<YzlSafetyCamera> page, @Param("ew") Wrapper<YzlSafetyCamera> wrapper);



    @DataPermission({
        @DataColumn(key = "deptName", value = "dept_id"),
        @DataColumn(key = "userName", value = "user_id")
    })
    default List<YzlSafetyCameraVo> selectVoListDept(Wrapper<YzlSafetyCamera> queryWrapper) {
        return this.selectVoList(queryWrapper);
    }

}
